<?php defined('SYSPATH') or die('No direct script access.'); ?>

2011-04-20 09:55:47 --- ERROR: Database_Exception [ 1064 ]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and consult_status.p_id=patient_profile.p_id' at line 1 [ SELECT consult_status.*,patient_profile.* FROM consult_status,patient_profile where consult_status.status = 'Consulting' and consult_status.consult_doctor_id= and consult_status.p_id=patient_profile.p_id ] ~ MODPATH\database\classes\kohana\database\mysql.php [ 179 ]